home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #11 / Software USA Volume 4.11.iso / mac / Educational / mac06 / usr / include / netinet / netinet⁄in.h < prev    next >
Encoding:
Text File  |  1998-02-14  |  493 b   |  23 lines  |  [TEXT/SPM ]

  1. /* mac06©1997 by HNS/DSITRI hns@computer.org
  2. ** netinet/in.h
  3. */
  4.  
  5. #pragma once
  6.  
  7. struct in_addr
  8.     {
  9.     unsigned long s_addr;        /* the address; may be extended for IPv6 */
  10.     };
  11.  
  12. struct sockaddr_in
  13.     {
  14.     unsigned short sin_family;    /* should be AF_INET! */
  15.     short sin_port;                    /* the port */
  16.     struct in_addr sin_addr;
  17.     char fill[16-sizeof(unsigned short)-sizeof(short)-sizeof(unsigned long)];
  18.     };
  19.  
  20. #define INADDR_ANY        0                /* any host */
  21. #define INADDR_LOCAL    ((127<<24)+1)    /* the local host */
  22.  
  23. /* EOF */